package Exer;

import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        int[] arr={1,2,3,4,5,6,7,8,9};
        // write your code here
        int[] arr1 = new int[5];
        System.arraycopy(arr, 0, arr1, 0, 5);
        System.out.println(Arrays.toString(arr1));

    }
}